package net.wwang.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping(value = "/home")
public class HomeController {
    @RequestMapping(value = "/toLogin")
    public String userLogin(){
        return "user/userLogin";
    }

    @RequestMapping(value = "/toRegister")
    public String userRegister(){
        return "user/userRegister";
    }

    @RequestMapping(value = "/hello")
    public String hello(){
        return "user/hello";
    }

    @RequestMapping(value = "/error")
    public String error(){
        return "user/error";
    }
}
